package vsion.demo.controller;

import vsion.demo.model.BusPlan;
import vsion.demo.service.safty.BusPlanService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * 计划表(BusPlan)表控制层
 *
 * @author makejava
 * @since 2019-09-27 11:33:01
 */
@RestController
@RequestMapping("busPlan")
public class BusPlanController {
    /**
     * 服务对象
     */
    @Resource
    private BusPlanService busPlanService;

    /**
     * 通过主键查询单条数据
     *
     * @param id 主键
     * @return 单条数据
     */
    @GetMapping("selectOne")
    public BusPlan selectOne(Integer id) {
        return this.busPlanService.queryById(id);
    }

}